//
//  SceneryObjectLayer.m
//  Agility
//
//  Created by Dominique d'Argent on 27.04.11.
//  Copyright 2011 Nicky Nubbel. All rights reserved.
//

#import "SceneryObjectLayer.h"


@implementation SceneryObjectLayer

@synthesize sceneryObject;

#pragma mark - Object lifecyle

//
// initWithSceneryObject:
//
// Designated initializer.
//
- (id)initWithSceneryObject:(SceneryObject *)newSceneryObject {
    self = [super init];
    
    if (self) {
        self.sceneryObject = newSceneryObject;
        
        [CATransaction begin];
        [CATransaction setDisableActions:YES];
        self.position = sceneryObject.position;
        [CATransaction commit];
    }
    
    return self;
}

//
// dealloc
//
// Releases retained objects.
//
- (void)dealloc {
    [sceneryObject release];
    
    [super dealloc];
}

#pragma mark - Animations

// 
// start
// 
// Should be overriden to start animations, does nothing by default.
//
- (void)start {
    
}

@end
